package com.waq;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 启动类
 */
@SpringBootApplication
//扫描mybatis 通用mapper所在的包
@MapperScan(basePackages = "com.waq.mapper")
@ComponentScan(basePackages = {"com.waq", "org.n3r.idworker"})//扫描所有com.waq下的包+org.n3r.idworker
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}